From: Brion Vibber Date: Wed, 2 May 2007 16:02:23 +0000 (+0000) Subject: E_STRICT fixlets: more static method markers X-Git-Tag: 1.31.0-rc.0~53123 X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=commitdiff_plain;h=9b06c5355c60905206e315fe6b55f35f55609567;p=lhc%2Fweb%2Fwiklou.git E_STRICT fixlets: more static method markers Also fixed a public function which was listed as private in comments for some reason --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 24795ba9b9..7c627ff3a4 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -40,12 +40,10 @@ class SearchEngine { * If an exact title match can be find, or a very slightly close match, * return the title. If no match, returns NULL. * - * @static * @param string $term * @return Title - * @private */ - function getNearMatch( $searchterm ) { + public static function getNearMatch( $searchterm ) { global $wgContLang; $allSearchTerms = array($searchterm); @@ -176,9 +174,8 @@ class SearchEngine { /** * Make a list of searchable namespaces and their canonical names. * @return array - * @access public */ - function searchableNamespaces() { + public static function searchableNamespaces() { global $wgContLang; $arr = array(); foreach( $wgContLang->getNamespaces() as $ns => $name ) {